import request from "@/utils/request";
// 获取章节列表
export function getUnitList({ params, data }) {
  return request({
    url: `/unitTest/findUnitList`,
    method: "get",
    params,
    data,
  });
}
// 获取每章学习进度
export function getUnitStudyStatus({ params, data }) {
  return request({
    url: `/unitTest/getHomePageParam`,
    method: "post",
    params,
    data,
  });
}
// 查询需要复习的总数
export function getReviewSum({ params, data }) {
  return request({
    url: `/unitTest/getHomePageParam1`,
    method: "get",
    params,
    data,
  });
}
//随堂练习获取题目
export function getPracticeQuestion({ params, data }) {
  return request({
    url: `/unitTest/getSyncExerciseQuestion`,
    method: "post",
    params,
    data,
  });
}
// 随堂练习校验答案
export function checkPracticeQuestion({ params, data }) {
  return request({
    url: `/unitTest/submitExerciseAnswer`,
    method: "post",
    params,
    data,
  });
}
//智能复习获取题目
export function getReviewQuestion({ params, data }) {
  return request({
    url: `/unitTest/getReviewExerciseQuestion`,
    method: "post",
    params,
    data,
  });
}
// 智能复习校验答案
export function checkReviewQuestion({ params, data }) {
  return request({
    url: `/unitTest/submitReviewAnswer`,
    method: "post",
    params,
    data,
  });
}
// 闯关测试获取试卷
export function getQuestionPaper({ params, data }) {
  return request({
    url: `/unitTest/getSyncExercisePaper`,
    method: "post",
    params,
    data,
  });
}
// 闯关测试校验答案
export function checkQuestionPaper({ params, data }) {
  return request({
    url: `/unitTest/submitSyncExercisePaper`,
    method: "post",
    params,
    data,
  });
}
